﻿using System;
using System.Xml.Serialization;

namespace Modelo
{
    [XmlRootAttribute("CodeSnippet", IsNullable = false)]
    public class CodeSnippet
    {
        public CodeSnippet() 
        {
            this.Header = new Header();
            this.Snippet = new Snippet();
        }

        [XmlAttributeAttribute("Format")]
        public string Format { get{ return "1.0.0"; } }

        [XmlElementAttribute(ElementName = "Header", IsNullable = false)]
        public Header Header { get; set; }

        [XmlElementAttribute(ElementName = "Snippet", IsNullable = false)]
        public Snippet Snippet { get; set; }
    }
}

